var navigateRule = {};

function init() {
	var array = new Array();
	
	setPageParameters();
	
	array.push("Alopex Runtime Javascript API");
	array.push("Alopex Runtime Native API");
	array.push("Alopex Runtime Screen Orientation");
	array.push("Native UI");
	array.push("NateOnBiz - main_message_list");
	array.push("NateOnBiz - code test");
	array.push("NateOnBiz - using alopex web");
	draw_list(array);
}

function setOnListClickHandler(idx) {
	switch(idx) {
		
		case 0 :
			navigate("apitest");
		break;
		
		case 1 :
			navigate("native_api");
		break;
		
		case 2 :
			navigate("screenOrientation");
		break;

		case 3 :
			navigate("nativeScreen1");
		break;

		case 4 :
			navigate("main_message_list");
		break;

		case 5 :
			navigate("mnb_login");
		break;

		case 6 :
			navigate("using_alopexweb");
		break;

	}
}
function onScreenBack() {
	setPageResult();
}

function setPageParameters() {
	if(navigation.parameters) {
		var str = "";
		for( var name in navigation.parameters) {
			str += name + " : " + navigation.parameters[name] + "\n";
		}
		
		alert("navigation.parameters : " + str);
	}
}

function setPageResult() {
	if(navigation.results) {
		var str = "";
		for( var name in navigation.results) {
			str += name + " : " + navigation.results[name] + "\n";
		}
		
		alert("navigation.results : " + str);
		
		navigation.results = null;
	}
}
